<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./09、Promise.js"></script>
</head>
<body>
    <script>
        let p = new Promise((resolve, reject) => {
            resolve('ok')
        })
        let res = p.then(value => {
            console.log(value)
            return '12'
        },reason => {
            console.log(reason)
        })
        console.log(res)
    </script>
</body>
</html>